const { defineConfig } = require('@vue/cli-service');
// vue.config.js
module.exports = defineConfig({
    transpileDependencies: true,
    lintOnSave: false,
    publicPath: './',
    devServer: {
        proxy: {
            '/api': {
                target: 'http://127.0.0.46',
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/api': '/api',
                    '^/api/download': '/api/upload',
                },
            },
        },
    },
    css: {
        loaderOptions: {
            sass: {
                // 在这里配置sass选项
                prependData: `@import "./src/common/css/global.scss";`,
            },
        },
    },
});
